<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>wineXpress Manage Notifications</title>
    </head>
    <body>
        <t:adminNavigation/>
        <br/>
        <h3 style="text-align: center;">Notification Management</h3>
        <div class="createNewNotification" style='width:75%; margin-left: 15%; margin-right: 10%;'>
            <% Boolean isSent = (Boolean) request.getAttribute("isSent");%>
            <%if (isSent != null && isSent) { %>
            <div class="alert alert-success">Notification is sent successfully.</div>
            <% } else if (isSent != null && !isSent) { %>
            <div class="alert alert-danger">There is an error sending the notification.</div>
            <% }%>
            <form id="createNewNotification" action="/WineXpressClient/notificationManagement/manageNotifications" method="post">
                <div class="form-group" style="width:50%'">
                    <input type="text" class="form-control" name="topicName" placeholder="Subject of the Notification">
                    <input name="create"  type="hidden" value="create"/>
                </div>
                <div class="form-group" style="width:50%'">
                    <textarea class="form-control" name="topicContent" placeholder="Content of the Notification" rows="5"></textarea>
                </div>
                <button type="submit" class="btn btn-default">Create</button>
            </form>
        </div>
        <t:footer/>
    </body>
</html>
